﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Param_manage.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.Param_manage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统参数-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js"  type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js"  type= "text/javascript"></script>
    <script src="../js/utils.js"  type= "text/javascript"></script>
</head>
<body>
<form id="Form1" runat="server" >
<table class="table_form" >
  <caption>参数类型管理</caption>
  <tbody>
      <tr>
        <th colspan=4 class="align_c">
            <a href="#"  onclick="return  showOrHiddeItem('AddNewType','AddNewParam');">新增参数类型</a> 
            <%=m_linkStr%>
            <a href="#"  onclick="return  showOrHiddeItem('AddNewParam','AddNewType');">新增变量</a>
         </th>
      </tr>
      <tr id="AddNewType"  class="hide">
            <td  class="align_c" colspan=4 >
                    <table class="table_form" style="width:95% " >
                        <tbody>
                            <tr> 
                              <th width="20%"><strong>类型名称</strong></th>
                              <td>
                                  <cms:TextBox  ID="txtTypeName" runat="server"  required="1"   prompt="类型名称" valuelength="20" ></cms:TextBox>
                                  <span class="FontWarn">*</span>
                              </td>
                            </tr>
                            <tr> 
                              <th width="20%"><strong>关键字</strong></th>
                              <td>
                                  <cms:TextBox  ID="txtTypeKeyWords" runat="server"  required="1" prompt="关键字" valuelength="20" ></cms:TextBox>
                                  <span class="FontWarn">*</span>
                              </td>
                            </tr>
                            <tr> 
                              <th></th>
                              <td>
                                  <cms:Button  CssClass="button_style" ID="btnpithyType"  Text="确定" 
                                      runat="server"  OnClientClick="return checkItems('txtTypeName,txtTypeKeyWords');" onclick="btnpithyType_Click" />
                                  <input class="button_style" name="reset"  onclick="$('#Form').resetForm();" value="清除" type="reset"> 
                              </td>
                            </tr>
                        </tbody>
                     </table>
                     
            </td>
      </tr>
      
      <tr id="AddNewParam"  class=hide >
            <td  class="align_c" colspan=4 >
                      <table class="table_form" style="width:95% ">
                        <tbody>
                            <tr> 
                              <th class="DataLeftTitle"><strong>参数名</strong></th>
                              <td>
                                  <cms:TextBox   ID="txtVarName" runat="server" required="1"  prompt="参数名"   valuelength="20"  ControlValueType="String" ></cms:TextBox>
                                  <span class="FontWarn">*</span>
                              </td>
                            </tr>
                            <tr> 
                              <th width="20%"><strong>关键字</strong></th>
                              <td>
                                  <cms:TextBox    ID="txtVarKey" runat="server" required="1"  prompt="关键字"   valuelength="20"   ControlValueType="String"></cms:TextBox>
                                  <span class="FontWarn">*</span>
                              </td>
                            </tr>
	                        <tr> 
                              <th><strong>参数值</strong></th>
                              <td>
                                  <cms:TextBox  ID="txtVarValue" runat="server"  required="1"  prompt="参数值"  valuelength="200"  ControlValueType="String" ></cms:TextBox>
                                  <span class="FontWarn">*</span>
                             </td>
                            </tr>
                            <tr> 
                              <th><strong>参数类别</strong></th>
                              <td>
                                  <cms:DropDownList ID="ddlType" runat="server">   </cms:DropDownList>
                             </td>
                            </tr>
                            <tr> 
                              <th><strong>变量值类型</strong></th>
                              <td>
                                  <cms:RadioButtonList ID="rbtValType" runat="server" 
                                      RepeatDirection="Horizontal">

                                  </cms:RadioButtonList>
                             </td>
                            </tr>
                            <tr> 
                              <th></th>
                              <td>
                                  <cms:Button  CssClass="button_style" ID="btnpithyParam"  Text="确定"  OnClientClick="return checkItems('txtVarName,txtVarKey,txtVarValue');"
                                      runat="server" onclick="btnpithyParam_Click" />
                                  <input class="button_style" name="reset"  onclick="$('#Form').resetForm();" value="清除" type="reset"> 
                              </td>
                            </tr>
                        </tbody>
                     </table>                     
            </td>
      </tr>
      
      <tr>
        <th  colspan=4 class="align_l fontBlueForForm">
           当前类型:
           <cms:TextBox  ID="txtName" runat="server" required="1" prompt="参数名称" valuelength="20" ></cms:TextBox>
           
        </th>
      </tr>
      <tr class="table_listth align_c">
            <td  class="align_c" ><strong>参数说明</strong></td>
            <td  class="align_c" ><strong>参数值</strong></td>
            <td  class="align_c" ><strong>变量名</strong></td>
            <td  class="align_c" ><strong>操作</strong></td>
       </tr>
       <cms:Literal ID="ltFormItem" runat="server">
        <tr class="align_c"> 
          <th class="align_c" style=" width:20%" >
              {0}
          </th>
          <td class="align_c">   
              {1}
          </td>
          <td class="align_c" style=" width:10%">   
              {2}
          </td>
          <td class="align_c" style=" width:20%">   
              {3} 
          </td>
        </tr>
       </cms:Literal>
        <tr> 
          <td colspan="4" class="align_c">
              <cms:Button  CssClass="button_style" ID="btnSubmit"  Text="确定"   runat="server" onclick="btnSubmit_Click" />
              &nbsp;&nbsp;&nbsp;&nbsp;
              <input class="button_style" name="reset"  onclick="$('#Form').resetForm();" value="清除" type="reset"> 
          </td>
        </tr>
  </tbody>
</table>
</form>
</body>
</html>
